package com.csg.api.service.client.impl;

import com.csg.api.service.client.FeignDemoClient;
import com.csg.api.service.model.DemoModel;

import java.util.Collections;
import java.util.List;

/**
 * 公共回滚实现
 *
 * @author george
 */
public class FeignDemoClientImpl implements FeignDemoClient {

    @Override
    public List<DemoModel> query(DemoModel model) {
        return Collections.singletonList(new DemoModel(1, "error"));
    }

    @Override
    public DemoModel getInfo(Integer id) {
        return new DemoModel(1, "error");
    }

    @Override
    public DemoModel create(DemoModel model) {
        return new DemoModel(1, "error");
    }

    @Override
    public DemoModel update(DemoModel model) {
        return new DemoModel(1, "error");
    }

    @Override
    public void delete(Integer id) {

    }
}
